﻿<Window 
    x:Class="SweetSQL.Samples.Crud.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="SQLite CRUD Test" Width="750" Height="550"
    Loaded="Window_Loaded">
    <Grid>
        <ListView x:Name="View">
            <ListView.View>
                <GridView>
                    <GridViewColumn DisplayMemberBinding="{Binding Number}" Header="Employee #" />
                    <GridViewColumn DisplayMemberBinding="{Binding Name}" Header="Name" />
                </GridView>
            </ListView.View>
            <ListView.ContextMenu>
                <ContextMenu>
                    <MenuItem Header="_New" Click="New_Click"></MenuItem>
                    <MenuItem Header="_Edit" Click="Edit_Click"></MenuItem>
                    <MenuItem Header="_Delete" Click="Delete_Click"></MenuItem>
                    <MenuItem Header="Delete _All" Click="DeleteAll_Click"></MenuItem>
                    <MenuItem Header="E_xport" Click="Export_Click"></MenuItem>
                    <MenuItem Header="_Generate 100" Click="Generate_Click"></MenuItem>
                </ContextMenu>
            </ListView.ContextMenu>
        </ListView>
    </Grid>
</Window>